package com.fuxian.dao;

import java.util.List;
import java.util.Map;

import com.fuxian.model.Notice;

public interface NoticeDao {

	/**
	 * ADD NEW NOTICE
	 * @author caoxue
	 * @param notice
	 */
	public void addNotice(Notice notice);

	/**
	 * DELETE NOTICE BY ID
	 * @author caoxue
	 * @param id
	 */
	public void deleteNoticeById(int id);

	/**
	 * MODIFY NOTICE
	 * @author caoxue
	 * @param notice
	 */
	public void modifyNotice(Notice notice);

	/**
	 * SELECT NOTICE BY ID
	 * @author caoxue
	 * @param id
	 * @return Notice
	 */
	public Notice selectNoticeById(int id);

	/**
	 * SELECT NOTICE BY Author
	 * @author caoxue
	 * @param Author
	 * @return List
	 */
	public List<Notice> selectNoticeByAuthor(Map map);

	/**
	 * SELECT NOTICE BY Createtime
	 * @author caoxue
	 * @param Createtime
	 * @return List
	 */
	public List<Notice> selectNoticeByCreatetime(Map map);

	
	/**
	 * SELECT ALL NOTICE
	 * @return List
	 */
	public List<Notice> selectAllNotice(int start,int size);
	
	public int selectNoticeCount();
}
